export const GlobalEventType = {
    'GAME_INIT': "ET_GAME_INIT",
    'GAME_PAUSE': "ET_GAME_PAUSE",
    'GAME_RESUME': "ET_GAME_RESUME",
    'GAME_ELAPSE_ONCE': "ET_TIMEOUT",
    'GAME_ELAPSE_REPEAT': "ET_REPEAT_TIMEOUT",
    'BUILD_SUCCESS': "ET_ABILITY_BUILD_FINISH",
    'START_SKILL_POINTER': "ET_START_SKILL_POINTER",
    'STOP_SKILL_POINTER': "ET_STOP_SKILL_POINTER",
    'CUSTOM_EVENT': "ET_EVENT_CUSTOM",
    'UI_EVENT': "ET_TRIGGER_COMPONENT_EVENT",
    'UNIT_ATTR_CHANGE': "ET_UNIT_ATTR_CHANGE",
    'UNIT_START_NAVI': "ET_UNIT_START_NAV_EVENT",
    'UNIT_END_NAVI': "ET_UNIT_END_NAV_EVENT",
    'ITEM_BROKEN': "ET_ITEM_BROKEN",
    'ITEM_SOLD': "ET_ITEM_SOLD",
    'AREA_ENTER': "ET_AREA_ENTER",
    'AREA_LEAVE': "ET_AREA_LEAVE",
    'UNIT_PRECONDITION_MEET': "ET_UNIT_PRECONDITION_SUCCEED",
    'UNIT_PRECONDITION_FAILED': "ET_UNIT_PRECONDITION_FAILED",
    'ITEM_PRECONDITION_MEET': "ET_ITEM_PRECONDITION_SUCCEED",
    'ITEM_PRECONDITION_FAILED': "ET_ITEM_PRECONDITION_FAILED",
    'ABILITY_PRECONDITION_MEET': "ET_ABILITY_PRECONDITION_SUCCEED",
    'ABILITY_PRECONDITION_FAILED': "ET_ABILITY_PRECONDITION_FAILED",
    'TECH_PRECONDITION_MEET': "ET_TECH_PRECONDITION_SUCCEED",
    'TECH_PRECONDITION_FAILED': "ET_TECH_PRECONDITION_FAILED",
    'KEYBOARD_DOWN': "ET_KEYBOARD_KEY_DOWN_EVENT",
    'KEYBOARD_UP': "ET_KEYBOARD_KEY_UP_EVENT",
    'MOUSE_DOWN': "ET_MOUSE_KEY_DOWN_EVENT",
    'MOUSE_UP': "ET_MOUSE_KEY_UP_EVENT",
    'MOUSE_D_CLICK': "MOUSE_KEY_DB_CLICK_EVENT",
    'MOUSE_MOVE': "MOUSE_MOVE_EVENT",
    'MOUSE_WHEEL': "ET_MOUSE_WHEEL_EVENT",
    'MOUSE_DOWN_UNIT': "MOUSE_KEY_DOWN_UNIT_EVENT",
    'MOUSE_UP_UNIT': "MOUSE_KEY_UP_UNIT_EVENT",
    'MOUSE_D_CLICK_UNIT': "MOUSE_KEY_DB_CLICK_UNIT_EVENT",
    'SELECT_UNIT': "ET_SELECT_UNIT",
    'SELECT_UNIT_GROUP': "ET_SELECT_UNIT_GROUP",
    'SELECT_ITEM': "ET_SELECT_ITEM",
    'D_CLICK_ITEM': "ET_DOUBLE_CLICK_ITEM",
    'SELECT_DEST': "ET_SELECT_DEST",
    'D_CLICK_DEST': "ET_DOUBLE_CLICK_DEST",
    'PLAYER_JOIN': "ET_ROLE_JOIN_BATTLE",
    'PLAYER_EXIT': "ET_ROLE_ACTIVE_EXIT_GAME_EVENT",
    'PLAYER_LOSE_CONNECT': "ET_ROLE_LOSE_CONNECT",
    'PLAYER_RESOURCE_CHANGED': "ET_ROLE_RESOURCE_CHANGED",
    'PLAYER_SEND_STRING': "ET_ROLE_INPUT_MSG",
    'PLAYER_SEND_ANY': "ET_CHAT_SEND_GM",
    'PLAYER_UPGRADE_TECH': "ET_ROLE_TECH_UPGRADE",
    'PLAYER_DOWNGRADE_TECH': "ET_ROLE_TECH_DOWNGRADE",
    'PLAYER_CHANGE_TECH': "ET_ROLE_TECH_CHANGED",
}

export const UIEventType = {
    'UI_CREATE': "ET_UI_PREFAB_CREATE_EVENT",
    'UI_DELETE': "ET_UI_PREFAB_DEL_EVENT",
}

export const UnitEventType = {
    'BEFORE_UNIT_DIE': "ET_BEFORE_UNIT_DIE",
    'UNIT_DIE': "ET_UNIT_DIE",
    'KILL_UNIT': "ET_KILL_UNIT",
    'UNIT_BORN': "ET_UNIT_BORN",
    'REVIVE_UNIT': "ET_REVIVE_UNIT",
    'UPGRADE_UNIT': "ET_UPGRADE_UNIT",
    'UNIT_PRE_ADD_EXP': "ET_UNIT_PRE_ADD_EXP",
    'UNIT_ON_ADD_EXP': "ET_UNIT_ON_ADD_EXP",
    'UNIT_BE_HURT': "ET_UNIT_BE_HURT",
    'UNIT_HURT_OTHER': "ET_UNIT_HURT_OTHER",
    'UNIT_BE_HURT_BEFORE_APPLY': "ET_UNIT_BE_HURT_BEFORE_APPLY",
    'UNIT_HURT_OTHER_BEFORE_APPLY': "ET_UNIT_HURT_OTHER_BEFORE_APPLY",
    'UNIT_BE_HURT_COMPLETE': "ET_UNIT_BE_HURT_COMPLETE",
    'UNIT_HURT_OTHER_COMPLETE': "ET_UNIT_HURT_OTHER_FINISH",
    'UNIT_GET_CURE_BEFORE_APPLY': "ET_UNIT_GET_CURE_BEFORE_APPLY",
    'UNIT_GET_CURE_FINISH': "ET_UNIT_GET_CURE_FINISH",
    'UNIT_GET_CURE': "ET_UNIT_GET_CURE",
    'UNIT_RELEASE_ABILITY': "ET_UNIT_RELEASE_ABILITY",
    'UNIT_START_MOVE': "ET_UNIT_START_MOVE",
    'UNIT_ENTER_BATTLE': "ET_UNIT_ENTER_BATTLE",
    'UNIT_EXIT_BATTLE': "ET_UNIT_EXIT_BATTLE",
    'UNIT_ENTER_GRASS': "ET_UNIT_ENTER_GRASS",
    'UNIT_LEAVE_GRASS': "ET_UNIT_LEAVE_GRASS",
    'UNIT_ON_COMMAND': "ET_UNIT_ON_COMMAND",
    'UNIT_ABILITY_UPGRADE': "ET_ABILITY_PLUS_POINT",
    'UNIT_REMOVE': "ET_UNIT_REMOVE",
    'UNIT_SHOP_BUY_UNIT': "ET_UNIT_SHOP_BUY_UNIT",
    'UNIT_SHOP_BUY_ITEM': "ET_UNIT_SHOP_BUY_ITEM",
    'UNIT_ITEM_SELL': "ET_UNIT_ITEM_SELL",
    'UNIT_ITEM_COMPOSE': "ET_UNIT_ITEM_COMPOSE",
    'UNIT_SHOP_BUY_WITH_COMPOSE': "ET_UNIT_SHOP_BUY_WITH_COMPOSE",
    'UNIT_UPGRADE_TECH': "ET_UNIT_UPGRADE_TECH",
    'UNIT_ADD_TECH': "ET_UNIT_ADD_TECH",
    'UNIT_REMOVE_TECH': "ET_UNIT_REMOVE_TECH",
    'UNIT_ROLE_CHANGED': "ET_UNIT_ROLE_CHANGED",
}

export const ItemEventType = {
    'ITEM_CREATE': "ET_ITEM_ON_CREATE",
    'ITEM_ADD': "ET_UNIT_ADD_ITEM",
    'ITEM_ADD_TO_PKG': "ET_UNIT_ADD_ITEM_TO_PKG",
    'ITEM_ADD_TO_BAR': 'ET_UNIT_ADD_ITEM_TO_BAR',
    'ITEM_REMOVE': 'ET_UNIT_REMOVE_ITEM',
    'ITEM_REMOVE_FROM_PKG': 'ET_UNIT_REMOVE_ITEM_FROM_PKG',
    'ITEM_REMOVE_FROM_BAR': 'ET_UNIT_REMOVE_ITEM_FROM_BAR',
    'ITEM_USE': 'ET_UNIT_USE_ITEM',
    'ITEM_CHANGE_STACK': "ET_ITEM_STACK_CHANGED",
    'ITEM_CHANGE_CHARGE': "ET_ITEM_CHARGE_CHANGED",
    'ITEM_DESTROY': "ET_ITEM_ON_DESTROY",
    'ITEM_CREATE_ON_DEST_COLLECTED': "ET_ITEM_CREATE_ON_DEST_COLLECTED",
}

export const AbilityEventType = {
    'ABILITY_CS_START': "ET_ABILITY_CS_START",
    'ABILITY_PS_START': "ET_ABILITY_PS_START",
    'ABILITY_PS_END': "ET_ABILITY_PS_END",
    'ABILITY_SP_END': "ET_ABILITY_SP_END",
    'ABILITY_CST_END': "ET_ABILITY_CST_END",
    'ABILITY_BS_END': "ET_ABILITY_BS_END",
    'ABILITY_PS_INTERRUPT': "ET_ABILITY_PS_INTERRUPT",
    'ABILITY_SP_INTERRUPT': "ET_ABILITY_SP_INTERRUPT",
    'ABILITY_CST_INTERRUPT': "ET_ABILITY_CST_INTERRUPT",
    'ABILITY_END': "ET_ABILITY_END",
    'ABILITY_OBTAIN': "ET_ABILITY_OBTAIN",
    'ABILITY_LOSE': "ET_ABILITY_LOSE",
    'ABILITY_UPGRADE': "ET_ABILITY_PLUS_POINT",
    'ABILITY_LEVEL_CHANGED': "ET_ABILITY_UPGRADE",
    'ABILITY_CD_END': "ET_ABILITY_CD_END",
    'ABILITY_SWITCH': "ET_ABILITY_SWITCH",
}

export const ModifierEventType = {
    'OBTAIN_MODIFIER': "ET_OBTAIN_MODIFIER",
    'LOSS_MODIFIER': "ET_LOSS_MODIFIER",
    'MODIFIER_CYCLE_TRIGGER': "ET_MODIFIER_CYCLE_TRIGGER",
    'MODIFIER_LAYER_CHANGE': "ET_MODIFIER_LAYER_CHANGE",
    'MODIFIER_GET_BEFORE_CREATE': "ET_MODIFIER_GET_BEFORE_CREATE",
    'MODIFIER_BE_COVERED': "ET_MODIFIER_BE_COVERED",
    'MODIFIER_ADDTION': "ET_MODIFIER_ADDTION",
}

export const ProjectileEventType = {
    'PROJECTILE_PRODUCE': "ET_PRODUCE_PROJECTILE",
    'PROJECTILE_END': "ET_DEATH_PROJECTILE",
}

export const PlatformEventType = {
    'HOLD_STORE_ITEM': "ET_ROLE_HOLD_STORE_ITEM",
    'USE_STORE_ITEM_END': "ET_ROLE_USE_STORE_ITEM_END",
}

export const DestructibleEventType = {
    'DEST_CREATE': "ET_DEST_CREATE_NEW",
    'DEST_DIE': "ET_DEST_DIE_NEW",
    'DEST_REVIVE': "ET_DEST_REVIVE_NEW",
    'DEST_RES_CNT_CHG': "ET_DEST_RES_CNT_CHG_NEW",
    'DEST_COLLECTED': "ET_DEST_COLLECTED_NEW",
    'DEST_GET_HURT': "ET_GET_HURT_NEW",
    'DEST_DELETE': "ET_DEST_DELETE",
}
